package com.tjmc.tiomscore.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TiBusiExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TiBusiExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNativenameIsNull() {
            addCriterion("nativename is null");
            return (Criteria) this;
        }

        public Criteria andNativenameIsNotNull() {
            addCriterion("nativename is not null");
            return (Criteria) this;
        }

        public Criteria andNativenameEqualTo(String value) {
            addCriterion("nativename =", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotEqualTo(String value) {
            addCriterion("nativename <>", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameGreaterThan(String value) {
            addCriterion("nativename >", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameGreaterThanOrEqualTo(String value) {
            addCriterion("nativename >=", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameLessThan(String value) {
            addCriterion("nativename <", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameLessThanOrEqualTo(String value) {
            addCriterion("nativename <=", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameLike(String value) {
            addCriterion("nativename like", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotLike(String value) {
            addCriterion("nativename not like", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameIn(List<String> values) {
            addCriterion("nativename in", values, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotIn(List<String> values) {
            addCriterion("nativename not in", values, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameBetween(String value1, String value2) {
            addCriterion("nativename between", value1, value2, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotBetween(String value1, String value2) {
            addCriterion("nativename not between", value1, value2, "nativename");
            return (Criteria) this;
        }

        public Criteria andServicetypeIsNull() {
            addCriterion("servicetype is null");
            return (Criteria) this;
        }

        public Criteria andServicetypeIsNotNull() {
            addCriterion("servicetype is not null");
            return (Criteria) this;
        }

        public Criteria andServicetypeEqualTo(String value) {
            addCriterion("servicetype =", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeNotEqualTo(String value) {
            addCriterion("servicetype <>", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeGreaterThan(String value) {
            addCriterion("servicetype >", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeGreaterThanOrEqualTo(String value) {
            addCriterion("servicetype >=", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeLessThan(String value) {
            addCriterion("servicetype <", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeLessThanOrEqualTo(String value) {
            addCriterion("servicetype <=", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeLike(String value) {
            addCriterion("servicetype like", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeNotLike(String value) {
            addCriterion("servicetype not like", value, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeIn(List<String> values) {
            addCriterion("servicetype in", values, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeNotIn(List<String> values) {
            addCriterion("servicetype not in", values, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeBetween(String value1, String value2) {
            addCriterion("servicetype between", value1, value2, "servicetype");
            return (Criteria) this;
        }

        public Criteria andServicetypeNotBetween(String value1, String value2) {
            addCriterion("servicetype not between", value1, value2, "servicetype");
            return (Criteria) this;
        }

        public Criteria andDirectionIsNull() {
            addCriterion("direction is null");
            return (Criteria) this;
        }

        public Criteria andDirectionIsNotNull() {
            addCriterion("direction is not null");
            return (Criteria) this;
        }

        public Criteria andDirectionEqualTo(String value) {
            addCriterion("direction =", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotEqualTo(String value) {
            addCriterion("direction <>", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionGreaterThan(String value) {
            addCriterion("direction >", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionGreaterThanOrEqualTo(String value) {
            addCriterion("direction >=", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLessThan(String value) {
            addCriterion("direction <", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLessThanOrEqualTo(String value) {
            addCriterion("direction <=", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLike(String value) {
            addCriterion("direction like", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotLike(String value) {
            addCriterion("direction not like", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionIn(List<String> values) {
            addCriterion("direction in", values, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotIn(List<String> values) {
            addCriterion("direction not in", values, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionBetween(String value1, String value2) {
            addCriterion("direction between", value1, value2, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotBetween(String value1, String value2) {
            addCriterion("direction not between", value1, value2, "direction");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeIsNull() {
            addCriterion("ownesservicetype is null");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeIsNotNull() {
            addCriterion("ownesservicetype is not null");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeEqualTo(String value) {
            addCriterion("ownesservicetype =", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeNotEqualTo(String value) {
            addCriterion("ownesservicetype <>", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeGreaterThan(String value) {
            addCriterion("ownesservicetype >", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeGreaterThanOrEqualTo(String value) {
            addCriterion("ownesservicetype >=", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeLessThan(String value) {
            addCriterion("ownesservicetype <", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeLessThanOrEqualTo(String value) {
            addCriterion("ownesservicetype <=", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeLike(String value) {
            addCriterion("ownesservicetype like", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeNotLike(String value) {
            addCriterion("ownesservicetype not like", value, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeIn(List<String> values) {
            addCriterion("ownesservicetype in", values, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeNotIn(List<String> values) {
            addCriterion("ownesservicetype not in", values, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeBetween(String value1, String value2) {
            addCriterion("ownesservicetype between", value1, value2, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andOwnesservicetypeNotBetween(String value1, String value2) {
            addCriterion("ownesservicetype not between", value1, value2, "ownesservicetype");
            return (Criteria) this;
        }

        public Criteria andActivestateIsNull() {
            addCriterion("activestate is null");
            return (Criteria) this;
        }

        public Criteria andActivestateIsNotNull() {
            addCriterion("activestate is not null");
            return (Criteria) this;
        }

        public Criteria andActivestateEqualTo(String value) {
            addCriterion("activestate =", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateNotEqualTo(String value) {
            addCriterion("activestate <>", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateGreaterThan(String value) {
            addCriterion("activestate >", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateGreaterThanOrEqualTo(String value) {
            addCriterion("activestate >=", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateLessThan(String value) {
            addCriterion("activestate <", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateLessThanOrEqualTo(String value) {
            addCriterion("activestate <=", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateLike(String value) {
            addCriterion("activestate like", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateNotLike(String value) {
            addCriterion("activestate not like", value, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateIn(List<String> values) {
            addCriterion("activestate in", values, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateNotIn(List<String> values) {
            addCriterion("activestate not in", values, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateBetween(String value1, String value2) {
            addCriterion("activestate between", value1, value2, "activestate");
            return (Criteria) this;
        }

        public Criteria andActivestateNotBetween(String value1, String value2) {
            addCriterion("activestate not between", value1, value2, "activestate");
            return (Criteria) this;
        }

        public Criteria andServicermuidIsNull() {
            addCriterion("servicermuid is null");
            return (Criteria) this;
        }

        public Criteria andServicermuidIsNotNull() {
            addCriterion("servicermuid is not null");
            return (Criteria) this;
        }

        public Criteria andServicermuidEqualTo(String value) {
            addCriterion("servicermuid =", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotEqualTo(String value) {
            addCriterion("servicermuid <>", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidGreaterThan(String value) {
            addCriterion("servicermuid >", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidGreaterThanOrEqualTo(String value) {
            addCriterion("servicermuid >=", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLessThan(String value) {
            addCriterion("servicermuid <", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLessThanOrEqualTo(String value) {
            addCriterion("servicermuid <=", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLike(String value) {
            addCriterion("servicermuid like", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotLike(String value) {
            addCriterion("servicermuid not like", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidIn(List<String> values) {
            addCriterion("servicermuid in", values, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotIn(List<String> values) {
            addCriterion("servicermuid not in", values, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidBetween(String value1, String value2) {
            addCriterion("servicermuid between", value1, value2, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotBetween(String value1, String value2) {
            addCriterion("servicermuid not between", value1, value2, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdIsNull() {
            addCriterion("tran_ptn_busi_id is null");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdIsNotNull() {
            addCriterion("tran_ptn_busi_id is not null");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdEqualTo(Long value) {
            addCriterion("tran_ptn_busi_id =", value, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdNotEqualTo(Long value) {
            addCriterion("tran_ptn_busi_id <>", value, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdGreaterThan(Long value) {
            addCriterion("tran_ptn_busi_id >", value, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdGreaterThanOrEqualTo(Long value) {
            addCriterion("tran_ptn_busi_id >=", value, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdLessThan(Long value) {
            addCriterion("tran_ptn_busi_id <", value, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdLessThanOrEqualTo(Long value) {
            addCriterion("tran_ptn_busi_id <=", value, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdIn(List<Long> values) {
            addCriterion("tran_ptn_busi_id in", values, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdNotIn(List<Long> values) {
            addCriterion("tran_ptn_busi_id not in", values, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdBetween(Long value1, Long value2) {
            addCriterion("tran_ptn_busi_id between", value1, value2, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andTranPtnBusiIdNotBetween(Long value1, Long value2) {
            addCriterion("tran_ptn_busi_id not between", value1, value2, "tranPtnBusiId");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}